-
Notifications
You must be signed in to change notification settings - Fork 23
Add wait in image builder protocol #567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
830ad57 to
397db46
Compare
wild-endeavor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kumare3 should we introduce a build object? I'm a little worried about the build function sometimes returning one thing and sometimes returning another. it's a bit too implicit i feel.
src/flyte/_build.py
Outdated
| wait: Wait for the build to finish. If wait is False, the function will return immediately and the build will | ||
| run in the background. | ||
| Returns: | ||
| The image URI. If wait is False when using the remote image builder, the function will return the build image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, making this an explicit object will be better.
Like ImageBuild object that contains, build job url and uri this can be useful in other places too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to the build object
|
Also after this PR https://github.com/flyteorg/flyte-sdk/pull/565/changes#r2728932092 is ready we should migrate the asyncio.to_thread to this. |
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
This adds an option to
flyte.buildto not wait for the image build to complete. Note: when the builder isremoteandwait=False, thebuildmethod will return the url to the image build task instead of the fully qualified URI